/*
 * Station.h
 *
 *  Created on: Jun 15, 2012
 *      Author: adroaldo
 */

#ifndef STATION_H_
#define STATION_H_
#include "ConnTable.h"

enum state_on_ring {
	beginning, floating, offline, soliciting, joining, idle, monitoring, have_token
};

enum state_on_varal {

};

class Station {

	unsigned char pred[FIELD_LEN];
	unsigned char succ[FIELD_LEN];
	unsigned char *pred_varal;
	unsigned char *succ_varal;
	unsigned char node_address[FIELD_LEN];
	unsigned char ring_address[FIELD_LEN];

	unsigned long local_gen_seq; /*value of the last token passed.*/
public:
	Station();
	virtual ~Station();
};
#endif /* STATION_H_ */
